Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Manipulating and Accessing Menu Item Characteristics /


SetMenuItemTextEncoding

NEW WITH THE APPEARANCE MANAGER

Sets the text encoding for a menu item's text.

pascal OSErr SetMenuItemTextEncoding (
                     MenuHandle inMenu,
                     SInt16 inItem,
                     TextEncoding inScriptID);
inMenu
A handle to the menu structure of the menu item whose text encoding you wish to set.
inItem
An integer representing the item number of the menu item whose text encoding you wish to set.
inScriptID
The script code that corresponds to the text encoding you wish to set.
function result
A result code; see "Result Codes".
DISCUSSION
To set the text encoding for a menu item's text, call the SetMenuItemTextEncoding function instead of SetItemCmd. If a menu item has a command code of 0x1C when SetMenuItemTextEncoding is called, the values in the command and icon fields of the menu resource are cleared and replaced with the value in the inScriptID parameter of SetMenuItemTextEncoding.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".

GetMenuItemTextEncoding.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998